$msbuildFile = $args[0]
$buildDir = $args[1]

& $env:windir\Microsoft.NET\Framework\v2.0.50727\msbuild $msbuildFile /p:BuildDir=$buildDir
if (!$?) {
	write "The build was not succesful. Do you want to continue (y/n)?"
	$key = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown");
	if ($key.Character -eq "n")
	{
		return;	
	}
}
